package day06;

public class RunTest {
    public static void main(String[] args) {
        int x=0;
        for (int i = 1; i <= 3; i++) {
            for (int j = 5- (i+x); j >= 0; j--) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2 * i - 1; j++) {
                System.out.print("* ");
            }
            System.out.println();
            System.out.println();//分两行
            for (int j = 4- (i+x); j >= 0; j--) {
                System.out.print(" ");
            }
            for (int j = 0; j < 2 * i ; j++) {
                System.out.print("* ");
            }
            System.out.println();
            System.out.println();//分两行
            x=x+1;
        }


    }
}
